package com.ky.serialport.sensor;

import com.ky.serialport.bean.ComBean;
import com.ky.serialport.sensor.root.RootACK;

/**
 * 速度开始计时ACK
 */
public class SpeedAckBean extends RootACK {

    public String typeStr = "单轮"; // 96 单轮无线速度传感器 _ 98 双轮无线速度传感器

    public SpeedAckBean() {

    }

    public SpeedAckBean(ComBean comBean) {
        caculate(comBean);
    }

    public SpeedAckBean caculate(ComBean comBean) {
        super.caculate(comBean);
        this.comBean = comBean;
        time = comBean.recTime;
        typeStr = (type == 96 ? "单轮" : "双轮");
        return this;
    }
}